'/
' MOTEP - Massive Online Text Environment Project
' --------------------------------------------------------------------------------
' Shared Code
' 
' Keycodes_h.bmx
' 
' (c) Anton Berlin. All Rights Reserved.
'/


const MOUSE_LEFT:int = 1
const MOUSE_RIGHT:int = 2
const MOUSE_MIDDLE:int = 3

const MODIFIER_NONE:int = 0
const MODIFIER_SHIFT:int = 1		'// Shift key
const MODIFIER_CONTROL:int = 2	'// Ctrl key
const MODIFIER_OPTION:int = 4	'// Alt or menu key
const MODIFIER_SYSTEM:int = 8	'// Windows or apple key

const MODIFIER_LMOUSE:int = 16
const MODIFIER_RMOUSE:int = 32
const MODIFIER_MMOUSE:int = 64

const MODIFIER_ALT:int = MODIFIER_OPTION
const MODIFIER_MENU:int = MODIFIER_OPTION
const MODIFIER_APPLE:int = MODIFIER_SYSTEM
const MODIFIER_WINDOWS:int = MODIFIER_SYSTEM

?macos
const MODIFIER_COMMAND:int = MODIFIER_APPLE
?win32
const MODIFIER_COMMAND:int = MODIFIER_CONTROL
?linux
const MODIFIER_COMMAND:int = MODIFIER_CONTROL
?

const KEY_BACKSPACE:int = 8
const KEY_TAB:int = 9
const KEY_CLEAR:int = 12
const KEY_RETURN:int = 13
const KEY_ENTER:int = 13
const KEY_ESCAPE:int = 27
const KEY_SPACE:int = 32
const KEY_PAGEUP:int = 33
const KEY_PAGEDOWN:int = 34
const KEY_END:int = 35
const KEY_HOME:int = 36

const KEY_LEFT:int = 37, KEY_UP:int = 38, KEY_RIGHT:int = 39, KEY_DOWN:int = 40

const KEY_SELECT:int = 41
const KEY_PRINT:int = 42
const KEY_EXECUTE:int = 43
const KEY_SCREEN:int = 44
const KEY_INSERT:int = 45
const KEY_DELETE:int = 46

const KEY_0:int = 48, KEY_1:int = 49, KEY_2:int = 50, KEY_3:int = 51, KEY_4:int = 52
const KEY_5:int = 53, KEY_6:int = 54, KEY_7:int = 55, KEY_8:int = 56, KEY_9:int = 57
const KEY_A:int = 65, KEY_B:int = 66, KEY_C:int = 67, KEY_D:int = 68, KEY_E:int = 69
const KEY_F:int = 70, KEY_G:int = 71, KEY_H:int = 72, KEY_I:int = 73, KEY_J:int = 74
const KEY_K:int = 75, KEY_L:int = 76, KEY_M:int = 77, KEY_N:int = 78, KEY_O:int = 79
const KEY_P:int = 80, KEY_Q:int = 81, KEY_R:int = 82, KEY_S:int = 83, KEY_T:int = 84
const KEY_U:int = 85, KEY_V:int = 86, KEY_W:int = 87, KEY_X:int = 88, KEY_Y:int = 89
const KEY_Z:int = 90
const KEY_A_LC:int = 97,  KEY_B_LC:int = 98,  KEY_C_LC:int = 99,  KEY_D_LC:int = 100, KEY_E_LC:int = 101
const KEY_F_LC:int = 102, KEY_G_LC:int = 103, KEY_H_LC:int = 104, KEY_I_LC:int = 105, KEY_J_LC:int = 106
const KEY_K_LC:int = 107, KEY_L_LC:int = 108, KEY_M_LC:int = 109, KEY_N_LC:int = 110, KEY_O_LC:int = 111
const KEY_P_LC:int = 112, KEY_Q_LC:int = 113, KEY_R_LC:int = 114, KEY_S_LC:int = 115, KEY_T_LC:int = 116
const KEY_U_LC:int = 117, KEY_V_LC:int = 118, KEY_W_LC:int = 119, KEY_X_LC:int = 120, KEY_Y_LC:int = 121
const KEY_Z_LC:int = 122
const KEY_AA:int = 229, KEY_AA_LC:int = 197
const KEY_AE:int = 228, KEY_AE_LC:int = 196
const KEY_OE:int = 246, KEY_OE_LC:int = 214

const KEY_NUM0:int = 96
const KEY_NUM1:int = 97
const KEY_NUM2:int = 98
const KEY_NUM3:int = 99
const KEY_NUM4:int = 100
const KEY_NUM5:int = 101
const KEY_NUM6:int = 102
const KEY_NUM7:int = 103
const KEY_NUM8:int = 104
const KEY_NUM9:int = 105

const KEY_NUMMULTIPLY:int = 106
const KEY_NUMADD:int = 107
const KEY_NUMSUBTRACT:int = 109
const KEY_NUMDECIMAL:int = 110
const KEY_NUMDIVIDE:int = 111

const KEY_F1:int = 112
const KEY_F2:int = 113
const KEY_F3:int = 114
const KEY_F4:int = 115
const KEY_F5:int = 116
const KEY_F6:int = 117
const KEY_F7:int = 118
const KEY_F8:int = 119
const KEY_F9:int = 120
const KEY_F10:int = 121
const KEY_F11:int = 122
const KEY_F12:int = 123

const KEY_TILDE:int = 192
const KEY_MINUS:int = 189
const KEY_EQUALS:int = 187

const KEY_OPENBRACKET:int = 219
const KEY_CLOSEBRACKET:int = 221
const KEY_BACKSLASH:int = 226

const KEY_EXCLAMATION:int = 33

const KEY_COLON:int = 58
const KEY_SEMICOLON:int = 59
const KEY_QUOTES:int = 34

const KEY_COMMA:int = 44
const KEY_PERIOD:int = 46
const KEY_SLASH:int = 47
const KEY_NUMBER:int = 35
const KEY_HYPHEN:int = 45
const KEY_DOLLAR:int = 36
const KEY_AMPER:int = 38
const KEY_APOSTR:int = 39
const KEY_PLUS:int = 43
const KEY_PERCENT:int = 37
const KEY_ATSIGN:int = 64
const KEY_UNDERSCR:int = 95
const KEY_ASTERISK:int = 42
const KEY_QUESTION:int = 63
const KEY_LESSER:int = 60
const KEY_EQUAL:int = 61
const KEY_GREATER:int = 62
const KEY_LEFTPAR:int = 40
const KEY_RIGHTPAR:int = 41
const KEY_VERTBAR:int = 124

const KEY_LSHIFT:int = 160
const KEY_RSHIFT:int = 161
const KEY_LCONTROL:int = 162
const KEY_RCONTROL:int = 163
const KEY_LALT:int = 164
const KEY_RALT:int = 165
const KEY_LSYS:int = 91
const KEY_RSYS:int = 92

